home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util4
/
anegato.lha
/
A.negato1.2
/
Source
/
AAsk.code
next >
Wrap
Text File
|
1992-09-02
|
1KB
|
51 lines
WBStartup : WbToScreen 0
SetErr:DisplayBeep_(0):End SetErr
StringGadget 0,10,26,0,0,50,120
StringGadget 0,160,26,0,1,50,120
Window 0,35,15,300,50,$1000|$8,"Inserisci Password, Grazie!",1,2,0
ActivateString 0,0 ;attiva il gadget stringa "NOME"
Repeat
VWait
WLocate 29,5:Print"NOME UTENTE"
WLocate 190,5:Print"PASSWORD"
w.l=WaitEvent
If w=$200
c.s=StringText$(0,0)+StringText$(0,1)
c=LCase$(c) ;c$=NOME+PASSWORD in minuscolo
Goto via
End If
Forever
via
If Exists("S:ANeg")
If OpenFile(0,"S:ANeg")
MaxLen d$=40
MaxLen e$=40
MaxLen f$=40
Fields 0,d$,e$,f$
Get 0,0
If (c<>d$ AND c<>e$ AND c<>f$) OR c="" ;se c$ non coincide con nessuna
;stringa registrata: beh, spegni il computer!
Repeat
VWait
DisplayBeep_(0)
Forever
End If
CloseFile 0
Else
DisplayBeep_(0)
End If
If OpenFile(0,"S:Ultimouso")
FileOutput 0
Print " Codice Ultimo Utente: ",c," "
CloseFile 0
Else
DisplayBeep_(0)
End If
End If
End